package com.study.talk.module.entity.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("修改密码参数")
public class PasswordVo {

    @NotEmpty(message = "密码不能为空")
    @Size(min = 6,max = 255,message = "密码长度必须大于等于6位")
    @ApiModelProperty("旧密码")
    private String oldPassword;


    @NotEmpty(message = "密码不能为空")
    @ApiModelProperty("新密码")
    @Size(min = 8,max = 255,message = "密码长度必须大于等于8位")
    private String newPassword;
}
